import request from '@/utils/request'

// 列表查询
export function getCarpoolList(params) {
  return request({
    url: '/travel/Carpool/list',
    method: 'get',
    params
  })
}

// 详情查询
export function getCarpoolDetail(id) {
  return request({
    url: `/travel/Carpool/${id}`,
    method: 'get'
  })
}

// 新增
export function addCarpool(data) {
  return request({
    url: '/travel/Carpool',
    method: 'post',
    data
  })
}

// 修改
export function updateCarpool(data) {
  return request({
    url: '/travel/Carpool',
    method: 'put',
    data
  })
}

// 删除（支持批量）
export function deleteCarpool(ids) {
  return request({
    url: `/travel/Carpool/${ids}`,
    method: 'delete'
  })
}

// 导出
export function exportCarpool(params) {
  return request({
    url: '/travel/Carpool/export',
    method: 'post',
    data: params
  })
}


